const dotenv = require('dotenv');
const fs = require('fs');
const path = require('path');

const config = dotenv.config();

const PRIVATE_KEY = fs.readFileSync(path.resolve(__dirname, './keys/private.key'));
const PUBLIC_KEY = fs.readFileSync(path.resolve(__dirname, './keys/private.key'));

module.exports = {
    APP_HOST,
    APP_PORT,
    MYSQL_HOST,
    MYSQL_PROT,
    MYSQL_DATABASE,
    MYSQL_USER,
    MYSQL_PASSWORD
} = config.parsed;

module.exports.PRIVATE_KEY = PRIVATE_KEY;
module.exports.PUBLIC_KEY = PUBLIC_KEY;
